<!-- inc:head -->
<style type="text/css">
body
{
	overflow:hidden;
}
</style>
<script type="text/javascript">
function ok()
{
	parent.Layer.over();
}

function to_mark(val)
{
	var mytype = $("popen_value_type").value;
	if(!mytype)
	{
		mytype = "mark";
	}
	if(val.indexOf("|,|"))
	{
		var m = val.split("|,|");
		if(mytype == "mark")
		{
			val = m[0];
		}
		else
		{
			val = m[1];
		}
	}
	parent.$("{:$inputname}").value = val;
	ok();
}
</script>
<div class="notice">
<table cellpadding='0' cellspacing='1'>
<tr>
	<td>&nbsp;&raquo; 图片列表</td>
	<td>
		<select id="popen_value_type" onchange="qg_setpic();">
			<option value="mark">水印图</option>
			<option value="normal">原图</option>
		</select>
	</td>
	<td>&nbsp;&raquo; 上传新图片：</td>
	<td>
		<div style="display:none;"><form method="post" action="admin.php?file=open&act=upok" enctype="multipart/form-data"></div>
		<input type="hidden" name="return_url" value="{:rawurlencode(basename($_SERVER[PHP_SELF])."?".$_SERVER[QUERY_STRING])}">
		<input type="file" name="upfilename"> <input type="submit" value="上传">
		<div style="display:none;"></form></div>
	</td>
</tr>
</table>
</div>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
	<!-- $piclist AS $key=>$value -->
	<td style="text-align:center;width:20%;height:100px;" align="center"><img src="{:$value[show_pic]}" width="90px" height="90px" border="0" onclick="to_mark('{:$value[val]}')" style="cursor:pointer"></td>
	<!-- row:6 -->
	<!-- end -->
</tr>
</table>

<div align="right">{:$pagelist}</div>

</body>
</html>